package multithread.framework.threadpool;

import java.util.List;
import java.util.concurrent.AbstractExecutorService;
import java.util.concurrent.TimeUnit;

public class DirectExecutorService extends AbstractExecutorService {

	private static class DirectExecutorServiceSingleton {
		private static final DirectExecutorService instance = new DirectExecutorService();
	}

	public static DirectExecutorService getInstance() {
		return DirectExecutorServiceSingleton.instance;
	}

	private DirectExecutorService() {
	}

	@Override
	public void shutdown() {
		// TODO Auto-generated method stub

	}

	@Override
	public List<Runnable> shutdownNow() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean isShutdown() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isTerminated() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean awaitTermination(long timeout, TimeUnit unit)
			throws InterruptedException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void execute(Runnable command) {
		try {
			command.run();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
